import 'package:casdon/modules/recipe/domain/usecase/recipe_put_brower_usecase.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

class RecipePutBrowerNotifier
    extends AutoDisposeFamilyAsyncNotifier<void, String> {
  @override
  Future<void> build(String arg) async {
    return _fetchData(arg);
  }

  Future<void> _fetchData(String arg) async {
    ref.read(recipePutBrowerUsecaseProvider).execute(menuId: arg);
  }
}

final recipePutBrowerAsyProvier =
    AutoDisposeAsyncNotifierProviderFamily<
      RecipePutBrowerNotifier,
      void,
      String
    >(() => RecipePutBrowerNotifier());
